<?php 	$a=parse_ini_file('setup.ini',1);

?>
<form action="index.php?token=<?php echo md5($results[1]['file']) ?>" method='post'> 
<div class='setColumn'>
	<div class='sys_element_contener'>
	<p>Wymagania</p>
	<table>
	<tr>
		<td>Mod_rewrite</td><td><?php echo (in_array('mod_rewrite', apache_get_modules())?'<div class="ok">': '<div class="fail">'); ?></td>
	</tr>
	<tr>
		<td>Pdo_mysql</td><td><?php echo (extension_loaded('pdo_mysql')?'<div class="ok">': '<div class="fail">') ; ?></td>
	</tr>
	</table>
	</div>	
</div>


<div class='setColumn'>
	<div class='sys_element_contener'>
	<p>Opis Serwera</p>
	<table>
	<tr>
		<td>System operacyjny</td><td><?php echo PHP_OS; ?></td>
	</tr>
	<tr>
		<td>Wersja php</td><td><?php echo PHP_VERSION; ?></td>
	</tr>
	<tr>
		<td>Oprogramowanie serwera</td><td><?php echo $_SERVER['SERVER_SOFTWARE'];  ?></td>
	</tr>
	<tr>
		<td>Adres IP serwera</td><td><?php echo $_SERVER['REMOTE_ADDR'];  ?></td>
	</tr>
	<tr>
		<td>Moduły Apache</td><td><?php foreach (apache_get_modules() as $mod){ echo $mod.', '; } ;  ?></td>
	</tr>
	<tr>
		<td>Rozszerzenia</td><td><?php foreach (get_loaded_extensions() as $mod){ echo $mod.', '; } ;  ?></td>
	</tr>
	</table>
	</div>
</div>

<div class='clear'></div>
<input type='submit' value='dalej' /> 
</form> 

